﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace gt.IdentityServer.Data
{
    public class AppUser
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        public string ShowName { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int Gender { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 介绍
        /// </summary>
        public string Introduce { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegsterTime { get; set; }
        /// <summary>
        /// 组Id
        /// </summary>
        public int GroupId { get; set; }
        /// <summary>
        /// 用户组
        /// </summary>
        public AppUserGroup Group { get; set; }
        /// <summary>
        /// 用户权限
        /// </summary>
        public List<AppUserRoleMapping> RoleMappings { get; set; }

    }
}
